<?php
namespace app\index\model;
use think\Model;
use think\model\relation\BelongsTo;

class Video extends Model{
    protected $autoWriteTimestamp = 'int';
    protected $createTime = 'addtime';
    protected $updateTime = false;
    public  function getOne()
    {
        return $this->belongsTo(\app\admin\model\Catelog::class)->bind(['catename'=>'name']);
    }
}